If you intend to use new or malloc to allocate memory in your Plug-ins, you will need to call FreeAllCplusMem() or FreeAllMallocMem() just before you exit your Plug-in. Not doing so will typically cause a 64k memory leak in your Plug-in each time it is called. The code for the FreeAll*() functions can be found in the 'CW memory files' folder. This is not necessary for Plug-ins that use the PMMalloc() method in the CIBasic class.